package com.voice.server.input;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.wangjiacai.utils.web.validator.Phone;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/*
 * @auther: wangjiacai
 *
 * @create: 2019-01-19 14:49:51
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class ResetPasswordRequest {

    private Integer area=86;

    @NotBlank(message = "手机号不能为空")
    @Phone
    private String phone;

    @NotBlank(message = "手验证码不能为空")
    private String code;

    @NotBlank(message = "密码不能为空")
    private String password;
}
